package com.jade.store.wechat.entity;

import com.jade.bss.db.IdEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.util.Date;

/**
 * 微信消息管理
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-4-25
 * Time: 15:01
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_WX_MSG")
public class WechatMsg extends IdEntity{
    //用户的昵称
    @Column(name = "crmId")
    private long crmId;
    @Column(name = "crmCode")
    private String crmCode;
    //用户的昵称
    @Column(name = "nickname")
    private String nickname;
    @Column(name = "headimgurl")
    private String headimgurl;
    // 开发者微信号
    private String appId;
    // 开发者微信号
    private String ToUserName;
    // 	发送方帐号（一个OpenID）
    private String FromUserName;
    //消息类型，event
    private String MsgType;
    // 事件类型，SCAN
    private String Event;
    //事件KEY值，是一个32位无符号整数，即创建二维码时的二维码scene_id
    private String EventKey;
    //二维码的ticket，可用来换取二维码图片
    private String Ticket;
    //	地理位置纬度
    private String Latitude;
    //地理位置经度
    private String Longitude;
    //	地理位置精度
    @Column(name = "address_precision")
    private String AddresPrecision;
    //	文本消息内容
    private String Content;

    //	消息id，64位整型
    private String MsgId;

    //		图片链接
    private String PicUrl;
    //		图片消息媒体id，可以调用多媒体文件下载接口拉取数据。
    private String MediaId;

    // 语音格式，如amr，speex等
    private String Format;

    //	视频消息缩略图的媒体id，可以调用多媒体文件下载接口拉取数据。
    private String ThumbMediaId;

    //		地理位置维度
    private String Location_X;
    //			地理位置经度
    private String Location_Y;
    //			地图缩放大小
    private String Scale;
    //			地理位置信息
    private String Label;

    //			消息标题
    private String Title;
    //			消息描述
    private String Description;
    //			消息链接
    private String Url;

    public long getCrmId() {
        return crmId;
    }

    public void setCrmId(long crmId) {
        this.crmId = crmId;
    }

    public String getCrmCode() {
        return crmCode;
    }

    public void setCrmCode(String crmCode) {
        this.crmCode = crmCode;
    }
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    @Transient
    private WechatUser wechatUser;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getToUserName() {
        return ToUserName;
    }

    public void setToUserName(String toUserName) {
        ToUserName = toUserName;
    }

    public String getFromUserName() {
        return FromUserName;
    }

    public void setFromUserName(String fromUserName) {
        FromUserName = fromUserName;
    }



    public String getMsgType() {
        return MsgType;
    }

    public void setMsgType(String msgType) {
        MsgType = msgType;
    }

    public String getEvent() {
        return Event;
    }

    public void setEvent(String event) {
        Event = event;
    }

    public String getEventKey() {
        return EventKey;
    }

    public void setEventKey(String eventKey) {
        EventKey = eventKey;
    }

    public String getTicket() {
        return Ticket;
    }

    public void setTicket(String ticket) {
        Ticket = ticket;
    }

    public String getLatitude() {
        return Latitude;
    }

    public void setLatitude(String latitude) {
        Latitude = latitude;
    }

    public String getLongitude() {
        return Longitude;
    }

    public void setLongitude(String longitude) {
        Longitude = longitude;
    }

    public String getAddresPrecision() {
        return AddresPrecision;
    }

    public void setAddresPrecision(String addresPrecision) {
        AddresPrecision = addresPrecision;
    }

    public WechatUser getWechatUser() {
        return wechatUser;
    }

    public void setWechatUser(WechatUser wechatUser) {
        this.wechatUser = wechatUser;
    }

    public String getContent() {
        return Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public String getMsgId() {
        return MsgId;
    }

    public void setMsgId(String msgId) {
        MsgId = msgId;
    }

    public String getPicUrl() {
        return PicUrl;
    }

    public void setPicUrl(String picUrl) {
        PicUrl = picUrl;
    }

    public String getMediaId() {
        return MediaId;
    }

    public void setMediaId(String mediaId) {
        MediaId = mediaId;
    }

    public String getFormat() {
        return Format;
    }

    public void setFormat(String format) {
        Format = format;
    }

    public String getThumbMediaId() {
        return ThumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        ThumbMediaId = thumbMediaId;
    }

    public String getLocation_X() {
        return Location_X;
    }

    public void setLocation_X(String location_X) {
        Location_X = location_X;
    }

    public String getLocation_Y() {
        return Location_Y;
    }

    public void setLocation_Y(String location_Y) {
        Location_Y = location_Y;
    }

    public String getScale() {
        return Scale;
    }

    public void setScale(String scale) {
        Scale = scale;
    }

    public String getLabel() {
        return Label;
    }

    public void setLabel(String label) {
        Label = label;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    public String getUrl() {
        return Url;
    }

    public void setUrl(String url) {
        Url = url;
    }

}
